﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PMS.Models.Base;
using PMS.Services;

namespace PMS.WebSite.Controllers
{
    public class BaseUserController : Controller
    {
        BaseUserService _baseUserService = new BaseUserService();
        // GET: BaseUser
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult GetList()
        {


            Hashtable param = new Hashtable();
            param.Add("Id", 1);
            param.Add("UserName","adm");

            var data = _baseUserService.GetList(param).ToList();

            return Json(data, "html/text", JsonRequestBehavior.AllowGet);

        }
    }
}